package com.wenli.lt.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.wenli.lt.entity.Menu;
import com.wenli.lt.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author lt
 * @since 2021-03-21
 */
public interface IUserService extends IService<User> {
    Map getUserInfo(String studentNumber);

    User login(String studentNumber, String password, Integer status);

    Boolean UpdatePassword(String studentNumber, String oldPassword, String newPassword);

    Boolean updateUserInfo(String studentNumber, String nickname, String phoneNumber,String avater);

    List<Menu> getTree(Integer stauts);

    IPage<User> getPeopleList(String classId, String collegeId, String gradeId,Long page,Long size);

    List<String>  updateHead(MultipartFile[] files,String goodsId) throws IOException;

    Boolean addUser(User user);

    Boolean deleteUser(String studentNumber);

    Boolean setUserLoginRelease(String studentNumber, Integer isLogin, Integer isRelease);

    Map getUserInfoByStudentNumber(String studentNumber);

    IPage getGoodLy(String studentNumber, Integer type, Long page, Long size);
}

